:root {
    --nav-bar-height: 45px;
    --aside-width: 280px;
    --common-border: 1px solid #e0e0e7;
    --drag-bar-width: 10px;
    --aside-min-width: 280px;
    --content-min-width: 0;
    --drag-bar-offsetLeft: calc(var(--aside-width) - var(--drag-bar-width) / 2);
    --drag-bar-height: calc(100% - var(--nav-bar-height));
    --main-background-color: var(--main-background-color);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scrollbar-width: thin; /* 设置滚动条宽度 */
    scrollbar-color: #888 #f1f1f1; /* 设置滑块和轨道的颜色 */
}

.document-layout {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
}

.nav-bar {
    background-color: var(--main-background-color);
    width: 100%;
    height: var(--nav-bar-height);
    border: var(--common-border);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 10px;
}

.el-page-header__left::after {
    right: -10px;
}

.el-page-header__left {
    margin-right: 20px;
}

.el-page-header__content {
    font-size: 18px;
    color: #409EFF;
}

.nav-bar .title {
    font-family: '华文宋体', serif; /* 保留原字体 */
    user-select: none;
    font-size: 20px; /* 适当增加字体大小 */
    color: #409EFF;
    font-weight: bold;
}

.nav-bar .button-bar {
    display: flex;
    justify-content: flex-end;
}

.nav-bar .button-bar .el-button, .el-dropdown {
    margin-right: 10px;
    color: #409EFF;
    cursor: pointer;
}

.el-dropdown-menu .el-dropdown-menu__item {
    display: flex;
    align-items: center;
}

.el-dropdown-menu .el-dropdown-menu__item span {
    margin-left: 5px;
}

.el-dropdown {
    display: flex;
    margin: auto;
}

.aside {
    background-color: var(--main-background-color);
    position: absolute;
    top: var(--nav-bar-height);
    left: 0;
    min-width: var(--aside-min-width);
    width: var(--aside-width);
    height: calc(100% - var(--nav-bar-height));
    border: var(--common-border);
    border-right: none;
    padding: 10px;
    /* 水平方向超出隐藏 */
    overflow-x: hidden;
    /* 垂直方向超出显示滚动条 */
    overflow-y: auto;
}

.aside .el-tree {
    background-color: var(--main-background-color);
    width: 100%;
    height: 100%;
}


.aside .tree-node {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    font-size: 13px;
}

.aside .tree-node span {
    margin-left: 3px;
}

.drag-bar {
    z-index: 10;
    width: var(--drag-bar-width);
    height: var(--drag-bar-height);
    position: absolute;
    top: var(--nav-bar-height);
    left: var(--drag-bar-offsetLeft);
    background-color: transparent;
}

/* 鼠标移入显示可拖动样式 */
.drag-bar:hover {
    cursor: w-resize;
}

.content {
    background-color: var(--main-background-color);
    position: absolute;
    top: var(--nav-bar-height);
    right: 0;
    min-width: var(--content-min-width);
    width: calc(100% - var(--aside-width));
    height: calc(100% - var(--nav-bar-height));
    border: var(--common-border);
}


iframe {
    background-color: var(--main-background-color);
    width: 100%;
    height: 100%;
    border: none;
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

.checkbox-group {
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.checkbox-group {
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
}

.checkbox-group .el-checkbox .el-checkbox__label {
    width: 150px;
}

.checkbox-group .el-input-number {
    width: 100px;
}

.checkbox-item {
    padding: 5px 0;
}

.el-dialog .el-form-item {
    width: 380px;
}

.el-dialog .el-form-item .el-input {
    width: 250px
}

.el-dialog .el-form-item .el-slider {
    width: 200px
}

